<%--
  Created by IntelliJ IDEA.
  User: zhuhui
  Date: 2017/4/19
  Time: 11:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/views/common/taglibs.jsp" %>
<core:set var="ctx" value="${pageContext.request.contextPath}"/>
<script src="${ctx}/js/bootstrap/bootstrap-datetimepicker.js"></script>
<script src="${ctx}/js/bootstrap/bootstrap-datetimepicker.zh-CN.js"></script>
<html>
<head>
    <title>汇总查询</title>
    <script src="${ctx}/js/views/specially/commCollect.js"></script>
</head>

<body ng-app="myApp">
<core:import url="../common/pageHead.jsp">
    <core:param name="title" value="汇总信息查询 "/>
</core:import>
<div ng-controller="queryCtrl" class="container-fluid">
    <form id="queryForm" name="queryForm" action="${ctx}/riskInfo/riskInfoSummaryQuery/riskQueryInfo" autocomplete="off">
        <table class="table table-condensed">
            <tr>
                <td class="text-right" style="padding-top: 12px;">
                    客户属性
                </td>
                <td>
                    <%--<input type="text" ng-model="vm.queryBean.roleType" class="{{vm.constant.inputClass}}">--%>
                    <select id="q_type" class="form-control input-sm form-control-inline" ng-model="vm.findBean.cusProperty" style="width: 200px" required
                            ng-options="key as value for (key,value) in vm.cached.CUSTPROPERTY" >
                        <option value="">请选择</option>
                    </select>
                </td>
                <td class="text-right" style="padding-top: 12px;">
                    关键字
                </td>
                <td>
                    <select class="form-control input-sm form-control-inline" ng-model="vm.findBean.keyWord" style="width: 200px" required
                            ng-options="key as value for (key,value) in vm.cached.Q_TYPE_CODE" >
                        <option value="">请选择</option>
                    </select>
                </td>
                <td class="text-right" style="padding-top: 12px;">
                    关键字信息
                </td>
                <td>
                    <input type="text" ng-model="vm.findBean.info"  class="form-control input-sm form-control-inline" style="width: 200px" required>
                </td>
                <%--<td><span style="color: red;font-weight: bold"> *</span></td>--%>
            </tr>
            <tr>
                <td class="text-right" style="padding-top: 12px;">
                    风险类型
                </td>
                <td>
                    <select class="form-control input-sm form-control-inline" ng-model="vm.findBean.riskType" style="width: 200px" required
                            ng-options="key as value for (key,value) in vm.cached.RISK_TYPE_CODE" >
                        <option value="">请选择</option>
                    </select>
                </td>
                <td class="text-right" style="padding-top: 12px;">
                    开始时间
                </td>
                <td>
                    <input type="text" ng-model="vm.findBean.startTime" class="form-control" style="width: 200px" uib-datepicker-popup="yyyy-MM-dd" name="beginTime" placeholder="请选择日期">
                </td>
                <td class="text-right" style="padding-top: 12px;">
                    结束时间
                </td>
                <td>
                    <input ng-model="vm.findBean.endTime" type="text" class="form-control" style="width: 200px" uib-datepicker-popup="yyyy-MM-dd" name="endTime" placeholder="请选择日期">
                </td>

            </tr>
            <tr align="center">
                <td colspan="6">
                    <button type="button" ng-click="vm.queryDetail()" class="btn btn-default">查询</button>
                    <button type="button" ng-click="vm.resetForm()" class="btn btn-default">重置</button>
                </td>
            </tr>
        </table>
    </form>
        <table table-detail>
            <thead>
            <tr>
                <%--<th>
                    <input type="checkbox" >
                </th>--%>
                <th>字段(涉及信息)</th>
                <th>出现有效次数</th>
                <th>涉及机构数量</th>
                <th>内容描述</th>
            </tr>
            </thead>
            <tbody ng-repeat="bean in vm.pagination.list">
            <tr>
                <%--<td>
                    <input name="check" type="checkbox" >
                </td>--%>
                <td>{{vm.enumCode[bean.element]==null?bean.element:vm.enumCode[bean.element]}}</td>
                <td>{{bean.validNum}}</td>
                <td>{{bean.invOrgNum}}</td>
                <td style="width:500px;">{{bean.info}}</td>
                <%--<td  style="width:400px;"><textarea style="width: 100%;height: 100%;" readonly="readonly">{{bean.info}}</textarea></td>--%>
            </tbody>

            <tfoot>
            <tr>


            </tr>
            </tfoot>
        </table>

    <%--<core:import url="../common/pageFoot.jsp"/>--%>
</div>
    <core:import url="../common/nav.jsp"/>
</body>
</html>
